﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YJYpublicClass
{
    public interface PLC通讯接口
    {
        bool Connection { get; }
        string Mes { get; }

        ConfigBase cf { get; set; }
        void Connect();
        void Close();
        void ReadD(string address,out string value);

        Boolean WriteD(string address, string value);
        void ReadF(string address,out string value);
        Boolean WriteF(string address, string value);
        void ReadDouble(string address,out string value);
        Boolean WriteDouble(string address, string value);

        void ReadCoil(string address, out string value);
        Boolean WriteCoil(string address, Boolean value);
    }

}
